home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1986-10-07 | 528 b | 22 lines |
- /* This program requires a EGA or a CGA */
-
- Predicates
- demoline
- box_line(Integer,Integer,Integer)
-
- Goal graphics(1,7,1),attribute(1),demoline.
-
- Clauses
- demoline :- cursor(0,0), write("\t\tLine Test\n\n"),
- box_line(1000,1000,75).
-
- box_line(Lrow,Lcol,N) :-
- N>0,!,
- LLcol2 = Lcol+400, N2 = N-1,
- line(Lrow,Lcol,30000,30000,N),
-
- Lrow2=32000-Lrow,Lcol2=32000-Lcol,
- line(Lrow2,Lcol,Lrow,Lcol2,N),
- box_line(Lrow,LLcol2,N2).
- box_line(_,_,0).
-